const Clutter = imports.gi.Clutter;
const Mx      = imports.gi.Mx;

function LoadScreen(container) {
	this._init(container);
}

LoadScreen.prototype = {
	_init: function (container) {
		this.loadScreenStack = new Mx.Stack ({ name: 'loadScreen-background' });
		container.add_child (this.loadScreenStack);

		this.loadScreenHBox = new Mx.BoxLayout ({ x_align: Clutter.ActorAlign.START,
		                                          y_align: Clutter.ActorAlign.START });
		this.loadScreenStack.add_child (this.loadScreenHBox);

//		this.spinner = new Mx.Spinner ({ style_class: 'loadScreen-spinner' });
//		this.loadScreenHBox.add_child (this.spinner);

		this.label = new Mx.Label ({ style_class: 'loadScreen-label' });
		this.label.text = "Loading...";
		this.loadScreenHBox.add_child (this.label);

		this.loadScreenOverlay = new Mx.Frame ({ name: 'loadScreen-overlay' });
		this.loadScreenStack.add_child (this.loadScreenOverlay);
	}
};
